package com.tl.bootmeter.config;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FilterConfig {
    @Bean
    public FilterRegistrationBean<doFilter> filterRegistrationBean(){
        FilterRegistrationBean<doFilter> registration = new FilterRegistrationBean<>();
        registration.setFilter(new doFilter());
        registration.addUrlPatterns("/*");
        registration.setName("doFilter");
        return registration;
    }

}
